package com.lxw.api.media;

import com.lxw.framework.domain.media.request.QueryMediaFileRequest;
import com.lxw.framework.model.response.QueryResponseResult;
import com.lxw.framework.model.response.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

@Api(value = "媒资文件管理Controller", description = "负责资源查询等功能")
public interface MediaFileControllerApi {
    @ApiOperation("根据条件分页获取媒资信息列表")
    @ApiImplicitParams({
            @ApiImplicitParam(value = "页码", name = "page", paramType = "path", dataType = "Integer", required = true),
            @ApiImplicitParam(value = "每页显示条数", name = "size", paramType = "path", dataType = "Integer", required = true),
            @ApiImplicitParam(value = "查询条件", name = "queryMediaFileRequest", dataType = "QueryMediaFileRequest")
    })
    public QueryResponseResult findList(Integer page,
                                        Integer size,
                                        QueryMediaFileRequest queryMediaFileRequest);

    @ApiOperation("删除媒资信息")
    @ApiImplicitParams({
            @ApiImplicitParam(value = "文件id", name = "id", paramType = "path", dataType = "Integer", required = true),
    })
    ResponseResult dispose(String id);
}
